<template>
  <footer class="site-footer">
    <div class="container">
      <div class="footer-content">
        <div class="footer-section">
          <h3 class="footer-title">关于我们</h3>
          <p class="footer-description">花漾定制是一家专注于提供高品质花艺服务的平台，我们致力于为每一位客户提供独特的花艺体验。</p>
          <div class="social-links">
            <a href="#" class="social-link">微信</a>
            <a href="#" class="social-link">微博</a>
            <a href="#" class="social-link">抖音</a>
          </div>
        </div>
        
        <div class="footer-section">
          <h3 class="footer-title">快速链接</h3>
          <ul class="footer-links">
            <li><router-link to="/">首页</router-link></li>
            <li><router-link to="/diy"  @click="$store.commit('changeActNum', 0);">DIY花束</router-link></li>
            <li><router-link to="/orders">我的订单</router-link></li>
            <li><router-link to="/more/community">花艺社区</router-link></li>
            <li><router-link to="/more/flower-care">鲜花养护</router-link></li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h3 class="footer-title">联系我们</h3>
          <ul class="contact-info">
            <li>
              <span class="contact-icon">📞</span>
              <span>400-123-4567</span>
            </li>
            <li>
              <span class="contact-icon">📧</span>
              <span>2195007340@qq.com</span>
            </li>
            <li>
              <span class="contact-icon">📍</span>
              <span>泰安市泰山区泮河校区7号</span>
            </li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h3 class="footer-title">订阅资讯</h3>
          <p class="footer-description">订阅我们的电子邮件，获取最新的花艺资讯和优惠信息。</p>
          <form class="subscribe-form">
            <input type="email" placeholder="您的邮箱地址" required>
            <button type="submit">订阅</button>
          </form>
        </div>
      </div>
      
      <div class="footer-bottom">
        <p class="copyright">© 2025 花漾定制. 保留所有权利.</p>
        <div class="footer-bottom-links">
          <a href="#">隐私政策</a>
          <a href="#">使用条款</a>
          <a href="#">作者：Yu.</a>

        </div>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  name: 'SiteFooter'
}
</script>

<style scoped>
.site-footer {
  /* 渐变背景 修改成功✌ */
  background: linear-gradient(to bottom, #fff, #e75480);
  color: #fff;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  color: #e75480;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.footer-description {
  margin-bottom: 1.2rem;
  line-height: 1.6;
  color: #fff;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #fff;
  transition: color 0.3s;
}

.social-link:hover {
  color: #e75480;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #fff;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #e75480;
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-icon {
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

.subscribe-form {
  display: flex;
}

.subscribe-form input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 4px 0 0 4px;
}

.subscribe-form button {
  padding: 0.8rem 1.2rem;
  background-color: #e75480;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.subscribe-form button:hover {
  background-color: #d64d7b;
}

.footer-bottom {
  border-top: 1px solid #ccc;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: #ccc;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #ccc;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: #e75480;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
</style>